import { getArticleInfoAction } from '@/store/action/article'
import { useEffect } from 'react'
import { useDispatch } from 'react-redux'
import { useLocation, useParams } from 'react-router-dom'
type PropsType = { id: string }
const ArticleInfo = (props: PropsType) => {
  console.log(props)

  const dispatch = useDispatch()
  const params = useParams<{ id: string }>()
  console.log(params)

  useEffect(() => {
    dispatch(getArticleInfoAction(params.id))
  }, [])
  return <div>article</div>
}
export default ArticleInfo
